using System.IO;

public class ex
{
	public static void Main(string[] argv) {
		Parser p = new syntax(new tokens());
		StreamReader s = new StreamReader(argv[0]);
		exp ast = (exp)p.Parse(s);
		if (ast!=null)
			Console.WriteLine((int)(ast.yylval));
	}
}
